#define _CRT_SECURE_NO_WARNINGS 1
#include "test.h"

void test1()
{
    struct ListNode* list1 = NULL;
    //struct ListNode* list2 = NULL;
    int SLnum = 0;
    while (scanf("%d", &SLnum) == 1)
    {
        SLPushBack(&list1, SLnum);
    }
    int x = 0;
    scanf("%d", &x);
    struct ListNode* head = partition(list1, x);
    while (head)
    {
        printf("%d->", head->val);
        head = head->next;
    }
    printf("NULL\n");
}

void test2()
{
    struct ListNode* list1 = NULL;
    //struct ListNode* list2 = NULL;
    int SLnum = 0;
    while (scanf("%d", &SLnum) == 1)
    {
        SLPushBack(&list1, SLnum);
    }
    if (chkPalindrome(list1))
    {
        printf("TRUE\n");
    }
    else
    {
        printf("FALSE\n");
    }
}

int main()
{
	//test1();
    test2();

	return 0;
}